package collector.core.xml;

import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("resultSet")
public class ResultSet {
	@XStreamImplicit(itemFieldName="result")
	protected List<Result> list;
	
	public String toString() {
		StringBuilder strb = new StringBuilder();
		if(list == null || list.size()==0) return "resultSet=null or zero";
		strb.append("resultSet: " + list.size());
		for(Result ret : list) {
			strb.append("\n ret=" + ret.toString());
		}
		
		return strb.toString();
	}

	public List<Result> getList() {
		return list;
	}

	public void setList(List<Result> list) {
		this.list = list;
	}
	
}
